package com.qg.cyapp.util;

import com.google.gson.Gson;
import com.qg.cyapp.loader.FileLoader;


/**
 * @author xuan
 * 2014-10-30
 * 
 */
//共享、通用资源
public class ShareUtil {
	//POST请求的地址前缀
	public static String BASE_URL="http://10.21.56.194:8080/nhms/EagleActions/jlmobile";
	//图片的地址前缀
	public static String IMG_BASE_URL="http://10.21.56.194:8080/nhms/UploadFiles";

	
	//标识activity
	public final static String ACTIVITY_KEY="activity";
	//ACTIVITY_KEY对应的值
	public final static int MedicinalDishesActivity = 1;
	public final static int NormalDishesActivity = 2;
	public final static int SearchShowActivity = 3;
	
	//Intent传值中使用的Key
	//元素坐标
	public final static String POSITION_KEY="position";
	public final static String SEARCH_KEY="search";
	public final static String DATA = "data";
	public final static String DATE = "date";
	
	//老人Id
	public static String olderId = "C14092816";
	
	//订餐常量
	public final static String NORMAL_FOOD="K0001";
	public final static String MEDICINAL_FOOD="K0002";
	
	//加载图片
	public static int request_width=320;
	public static int request_height=240;
	public static FileLoader imageLoader = new FileLoader(request_width, request_height, false);
	
	//Gson
	public static Gson gson = new Gson();
	
	//
	public final static int SUCCESS = 0; //操作成功
	public final static int FAIL = 1; //操作失败,且无附加错误信息
	public final static int FAIL_NULL = 1001; //空值错误,且无附加错误信息
	
	
	
}
